
package xjcFollower;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for reasonType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="reasonType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="preRating"/>
 *     &lt;enumeration value="randOutBound"/>
 *     &lt;enumeration value="lowRating"/>
 *     &lt;enumeration value="highRating"/>
 *     &lt;enumeration value="undefinedException"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "reasonType")
@XmlEnum
public enum ReasonType {

    @XmlEnumValue("preRating")
    PRE_RATING("preRating"),
    @XmlEnumValue("randOutBound")
    RAND_OUT_BOUND("randOutBound"),
    @XmlEnumValue("lowRating")
    LOW_RATING("lowRating"),
    @XmlEnumValue("highRating")
    HIGH_RATING("highRating"),
    @XmlEnumValue("undefinedException")
    UNDEFINED_EXCEPTION("undefinedException");
    private final String value;

    ReasonType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static ReasonType fromValue(String v) {
        for (ReasonType c: ReasonType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
